<%@page import="cn.yunhe.biz.CateBiz"%>
<%@page import="cn.yunhe.entity.Cate"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
		request.setCharacterEncoding("UTF-8");
		response.setCharacterEncoding("UTF-8");	
		
		int cateId=Integer.parseInt(request.getParameter("cateId"));
		String catename=request.getParameter("catename");
		
		Cate cate=new Cate(cateId,catename);
		
		CateBiz cateBiz=new CateBiz();
		boolean flag=cateBiz.updateCate(cate);
		
		if(flag){
			request.getRequestDispatcher("cateList.jsp").forward(request, response);
		}else{
			response.sendRedirect("editCate.jsp");
		}
		

%>
